<template>
<div>
  <el-button @click ="userLogout">退出登录</el-button>
</div>
</template>

<script setup>
import {logout} from "@/net/index.js";
import router from "@/router";

function userLogout(){
  logout(()=>router.push("/"))
}
export default {
  name: "IndexView"
}
</script>

<style scoped>

</style>